cmake_minimum_required(VERSION 3.0)
project(utils)

# 设置输出路径
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")

add_library(win SHARED "${CMAKE_SOURCE_DIR}/src/win.c")

# 导出函数声明
target_compile_definitions(win PRIVATE "DllExport=__declspec(dllexport)")
